feat(wintertc): migrate structuredClone, queueMicrotask and timers from boa_runtime#5419
Open
KaustubhOG wants to merge 3 commits into
Open
feat(wintertc): migrate structuredClone, queueMicrotask and timers from boa_runtime#5419KaustubhOG wants to merge 3 commits into
KaustubhOG wants to merge 3 commits into
Conversation
Test262 conformance changes
Tested main commit: |
Move the structuredClone implementation and its supporting JsValueStore serialization core (the store module) from boa_runtime into boa_wintertc, following the same move-and-re-export pattern used for atob/btoa (boa-dev#5418). - core/runtime/src/clone and core/runtime/src/store are deleted; the code now lives only in boa_wintertc. - boa_runtime re-exports both (pub use boa_wintertc::{clone, store}) so the public paths boa_runtime::clone and boa_runtime::store are unchanged, and boa_runtime::message keeps compiling against crate::store. - StructuredCloneExtension delegates to boa_wintertc::clone::register. - rustc-hash moves with store into boa_wintertc's dependencies; runtime keeps it because console still uses it. store must be public in boa_wintertc so boa_runtime can re-export it for the message module; net public surface across both crates is unchanged.
Move the queueMicrotask implementation from boa_runtime into boa_wintertc, following the move-and-re-export pattern used for atob/btoa (boa-dev#5418). - core/runtime/src/microtask is deleted; the code now lives only in boa_wintertc. - boa_runtime re-exports it (pub use boa_wintertc::microtask) so the public path boa_runtime::microtask::register is unchanged. - MicrotaskExtension delegates to boa_wintertc::microtask::register. The unit test is rewritten to record execution order in a global array rather than through console, since console is not part of boa_wintertc's test surface (it is still a stub pending its own migration).
Move setTimeout/clearTimeout/setInterval/clearInterval from boa_runtime::interval into boa_wintertc::timers, following the move-and-re-export pattern used for atob/btoa (boa-dev#5418). The module is renamed interval -> timers to match its TC55 category. - core/runtime/src/interval.rs and its tests are deleted; the code now lives only in boa_wintertc::timers. - boa_runtime re-exports it under the historical name (pub use boa_wintertc::timers as interval) so the public path boa_runtime::interval (used by e.g. the WPT harness's clear_all) and the register(context) signature are unchanged. - TimeoutExtension delegates to boa_wintertc::timers::register. - boa_wintertc mirrors boa_runtime's test-only allow(clippy::needless_raw_string_hashes); runtime's now-unused inspect_context_async test helper gains allow(unused).
KaustubhOG
force-pushed
the
feat/wintertc-migrate-microtask
branch
from
July 20, 2026 16:25
8e9d3f9 to
a0ee786
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5419 +/- ##
===========================================
+ Coverage 47.24% 62.69% +15.45%
===========================================
Files 476 531 +55
Lines 46892 59073 +12181
===========================================
+ Hits 22154 37036 +14882
+ Misses 24738 22037 -2701 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
KaustubhOG
marked this pull request as ready for review
July 20, 2026 17:06
Contributor
Author
|
hey @jedel1043 Batched three trivial move + re-export migrations here (structuredClone, |
33 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Continues the boa_runtime -> boa_wintertc migration started with atob/btoa (#5418),moving three more modules with the same move + re-export pattern. Code lives only inboa_wintertc; boa_runtime re-exports it (public paths unchanged) and the *Extension structs delegate.
Changes
clone->boa_wintertc::clone. Itsstoredependency (JsValueStore) also moves toboa_wintertc::store, since boa_wintertc cannot depend on boa_runtime.storestays public and is re-exported, soboa_runtime::messagekeeps compiling.rustc-hashmoves with it.microtask->boa_wintertc::microtask.interval->boa_wintertc::timers(renamed to its TC55 category). Re-exported aspub use boa_wintertc::timers as interval, soboa_runtime::interval(incl.clear_all, used by the WPT harness) is unchanged.Notes / deviations
storeis a non-TC55 helper that is now public in boa_wintertc. Net public surfac across both crates is unchanged (it was already public in boa_runtime); happy to make itpub(crate)oncemessagealso migrates.console,sinceconsoleis still a stub in boa_wintertc.